<case value="num">
    <input type="text" class="form-control input num" name="{$[type]form.name}" value="{$[type]form.value}" {$[type]form.extra_attr}>
</case>